
<?= $this->load->view('tp-admin/func/message') ?>



        <!-- start id-form -->
<?= form_open_multipart() ?>


    <table border="0" cellpadding="0" cellspacing="0" id="id-form" style="text-align: left" >
        <tbody>
            <tr>
                <th valign="top"><label>Ảnh đại diện</label></th>
                <td >
                    <input type="file" name="userfile"/>
                </td>
                <td>

                </td>
            </tr>

            <tr>
                <th>&nbsp;</th>
                <td valign="top">
                    <input type="submit"  value="Thêm"  name="submit" class="form-submit"/>
                    <input type="reset" value="Xóa trắng" class="form-reset"/>
                </td>
                <td></td>
            </tr>
        </tbody></table>

    <!-- end id-form  -->
</form>

<?php $i = 0;
if (isset($product_images)) { ?>
    <table border="0" width="30%" cellpadding="0" cellspacing="0" id="product-table">
        <tbody>
            <tr >
                <th class="table-header-repeat line-left minwidth-1"><a >Hình ảnh</a></th>
                
            </tr>
    <?php foreach ($product_images as $row): ?>
                <tr  style="text-transform: uppercase" <?= ($i % 2) ? 'class="alternate-row"' : '' ?>  >


                    <td><a><img src="<?= FRONT_UPLOADED . $row->image_url ?>" width="100" height="100"/></a>
                     <a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_product/delete_image/<?= $row->image_id ?>" onclick="return confirm('Bạn muốn xóa?');" class="icon-2 info-tooltip" title="Xóa"></a>
</td>

                    
                </tr>

                <?php
                $i++;
            endforeach;
            ?>
           </tbody></table>
<?php } ?>


